package oo2;

public class JucieMaker2 {
	String brand;
	int watt;

	public void show() {
		System.out.println("这个榨汁机是" + brand);
		System.out.println("功率是" + watt + "瓦特");
	}

	// 榨汁
	public String makeJuice(String fruit) {
		System.out.println("刀片开始转动");
		System.out.println(fruit + "被搅碎");
		System.out.println("得到了" + fruit + "汁");
		// String r = fruit + "汁";
		// return r;
		return fruit + "汁";
	}

	// 混合果汁
	public String hunheJuice(String fruit1, String fruit2) {
		System.out.println("刀片开始转动");
		System.out.println(fruit1 + "和" + fruit2 + "被搅碎");
		System.out.println("得到了" + fruit1 + fruit2 + "汁");

		String r = fruit1 + fruit2 + "汁";
		return r;
	}

	// 最好加上返回值
//	// 榨汁
//	public void makeJuice(String fruit) {
//
//		System.out.println("刀片开始转动");
//		System.out.println(fruit + "被搅碎");
//		System.out.println("得到了" + fruit + "汁");
//	}
//
//	// 混合果汁
//	public void hunheJuice(String fruit1, String fruit2) {
//		System.out.println("刀片开始转动");
//		System.out.println(fruit1 + "和" + fruit2 + "被搅碎");
//		System.out.println("得到了" + fruit1 + fruit2 + "汁");
//	}
}
